import {
  http
} from '../utils/request.js'

/**
 * 根据商品关键字或者商品分类id获取商品列表数据
 * @param  queryData {Object}  {cid:1,query:'',pagenum:1,pagesize:10}
 */
export const getGoodsListApi = queryData => http('/goods/search', 'get', queryData)

// 获取商品详情数据
export const getGoodsDetailApi = goods_id => http('/goods/detail', 'get', {
  goods_id
})